{% extends 'custom_admin/base.html' %}

{% block title %}撤回文章确认{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <h2>撤回文章确认</h2>
            
            <div class="card">
                <div class="card-header">
                    <h5>文章信息</h5>
                </div>
                <div class="card-body">
                    <p><strong>标题:</strong> {{ article.title }}</p>
                    <p><strong>作者:</strong> {{ article.author.username }}</p>
                    <p><strong>当前状态:</strong> {{ article.get_status_display }}</p>
                </div>
            </div>
            
            <div class="alert alert-warning mt-3">
                <p>确认要撤回文章"{{ article.title }}"吗？</p>
                <p>撤回后文章将不再对外可见。</p>
            </div>
            
            <form method="post">
                {% csrf_token %}
                <div class="btn-group" role="group">
                    <button type="submit" class="btn btn-warning">确认撤回</button>
                    <a href="{% url 'custom_admin:article_list' %}" class="btn btn-secondary">取消</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}